import matplotlib.pyplot as plt
from collections import OrderedDict
from matplotlib import cm
import numpy as np

plt.figure(figsize=(60,5))
grid = plt.GridSpec(10, 1, wspace=0.5, hspace=0.5)

plt.subplot(grid[0:3,0])
plt.axis([0,1,0,1])
plt.xticks([])
plt.yticks([])
# plt.margins(0.1,0.1)

y=np.linspace(0,1,500)
x=np.ones(500)*10
cmap=cm.get_cmap(name='jet')
corlor=cmap(y)
fig=plt.bar(y,x,width=0.1,color =corlor,)

ymin=0
ymax=0.15
step=10
i=0
round_num=2
if round_num==0:
    while i <=step:
        plt.text(x=i/step,y=-1,s=str(round((ymax-ymin)/step*i+ymin)),size=70)
        i+=1
else:
    while i <=step:
        plt.text(x=i/step,y=-1,s=str(round((ymax-ymin)/step*i+ymin,round_num)),size=70)
        i+=1

plt.savefig('2')
plt.show()
print("ok")
